-- GENERATED SPELL FOR [Shoveltusk Forager] --


function spell0_29479(pUnit, Event) --@Gore,n/a--
pUnit:FullCastSpellOnTarget(32019,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29479', 15000, 1)
end

function spell1_29479(pUnit, Event) --@Shoveltusk Charge,Self--
pUnit:FullCastSpellOnTarget(55860,pUnit)
pUnit:RegisterEvent('Sorts_29479', 5267, 1)
end

function Sorts_29479(pUnit, Event)
local choix_sorts_29479 = math.random(0, 1)
if choix_sorts_29479 == 0 then
pUnit:RegisterEvent('spell0_29479', 1, 1)
end
if choix_sorts_29479 == 1 then
pUnit:RegisterEvent('spell1_29479', 1, 1)
end
end

function mob29479_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29479', math.random(1500, 3000), 1)
end

function mob29479_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29479_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29479_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29479, 1, 'mob29479_Action')
RegisterUnitEvent(29479, 2, 'mob29479_Leave')
RegisterUnitEvent(29479, 3, 'mob29479_Kill')
RegisterUnitEvent(29479, 4, 'mob29479_Die')
